package zmx.zm.mx;

import java.util.Scanner;

public class Rn {
	public static void main(String[] args) {
	
		for ( int a  = 1988; a<=2008 ; a++) {
			if (a%4 ==0) {
				
				System.out.println(a+"");
			}
			
			
			
		}
		
		
	}

}
